public class Loser implements Comparable<Loser> {

	String name;
	int startWeight;
	int currentWeight;

	public Loser(String inName, int inStartWeight) {
		name = inName;
		startWeight = inStartWeight;
		currentWeight = inStartWeight;
	}

	public String getName() {
		return name;
	}

	public int getStartWeight() {
		return startWeight;
	}

	public int getCurrentWeight() {
		return currentWeight;
	}

	public int getWeightLost() {
		return startWeight - currentWeight;
	}

	public void setCurrentWeight(int newWeight) {
		if (newWeight < 100) {
			return;
		}
		currentWeight = newWeight;
	}

	@Override
	public boolean equals(Object another) {
		Loser other = (Loser) another;
		if(currentWeight != other.currentWeight) {
			return false;
		}
		
		return true;
	}

	@Override
	public int compareTo(Loser otherLoser) {
		int weightDifference = currentWeight - otherLoser.currentWeight;
		if (weightDifference == 0) {

		}

		return weightDifference;
	}

	@Override
	public String toString() {
		String result = "";

		result += "Name: " + name;
		result += "  Start Weight: " + startWeight;
		result += "lbs  Current Weight: " + currentWeight;
		result += "lbs  Weight Lost: " + (startWeight - currentWeight) + "lbs";

		return result;
	}

}
